
import axios, {Axios} from 'axios'
const context = "/ucenter"

/**
 * 获取 FmsMaterialUnit 分页列表
*/
export function getFmsMaterialUnitPagination(data: any) {
  return axios.get(`${context}/fmsMaterialUnit/pagination`, { params: data });
}


/**
 * 获取 FmsMaterialUnit 所有数据
*/
export function getFmsMaterialUnitAllList(data: any) {
  return axios.get(`${context}/fmsMaterialUnit/all`, { params: data });
}


/**
 * 获取 FmsMaterialUnit 详情
*/
export function getFmsMaterialUnitDetailById(id: any) {
  return axios.get(`${context}/fmsMaterialUnit/${id}`, { params:{id} });
}


/**
 * 新增 FmsMaterialUnit
*/
export function addFmsMaterialUnit(data: any) {
  return axios.post(`${context}/fmsMaterialUnit`, data);
}

/**
 * 修改 FmsMaterialUnit
*/
export function updateFmsMaterialUnit(data: any) {
  return axios.put(`${context}/fmsMaterialUnit`, data);
}

/**
 * 删除 FmsMaterialUnit
*/
export function batchRemoveFmsMaterialUnit(data: any) {
  return axios.post(`${context}/fmsMaterialUnit/batchRemove`, data);
}

    